package com.xinqi.modules.course.clazz.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.core.enums.ClassRoleEnum;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import com.xinqi.modules.course.course.enums.clazz.ClassOperationLogTypeEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * 班级日志实体层
 *
 * @author: system
 * @date: 2023/01/17
 */
@Setter
@Getter
@TableName("cl_class_operation_log")
public class ClassOperationLogEntity extends BaseEntity {
    /**
     * 课程id
     */
    @TableField(value = "course_id")
    private Long courseId;
    /**
     * 班级id
     */
    @TableField(value = "class_id")
    private Long classId;
    /**
     * 学生id
     */
    @TableField(value = "student_id")
    private Long studentId;
    /**
     * 班级日志类型：1-加入；2-退出
     */
    @TableField(value = "type")
    private ClassOperationLogTypeEnum type;
    /**
     * 校验ID
     */
    @TableField(value = "audit_id")
    private Long auditId;

    @TableField(value = "audit_content")
    private String auditContent;

    /**
     * 是否置顶课程
     */
    @TableField(value = "is_top")
    private Integer isTop;
    /**
     * 是否老师，0-否；1-是；
     */
    @TableField(value = "is_teacher")
    private Integer isTeacher;
    /**
     * TEACHER("TEACHER", "老师"),ASSISTANT("ASSISTANT", "助教"),REPRESENTATIVE("REPRESENTATIVE", "课代表"),STUDENT("STUDENT", "学生");
     */
    @TableField(value = "class_role")
    private ClassRoleEnum classRole;

}
